<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<script type="text/javascript" src="./js/angular.min.js"></script>
</head>
<body ng-app="myApp" ng-controller="myAppController"> 
<p ng-show="x.type | showType" ng-repeat="x in userList">{{x.id}}-----{{x.name}}-----{{x.type}}</p>
</body>
<script type="text/javascript">
var myApp = angular.module('myApp',[]);
myApp.controller('myAppController',['$scope',function($scope){
	$scope.userList = [
		{id:1,name:'刘备',type:2},
		{id:2,name:'刘禅',type:1},
		{id:3,name:'关羽',type:3},
		{id:4,name:'张飞',type:4},
		{id:5,name:'赵云',type:3}
	];
}]);
// 将类型等于 3 的进行隐藏
myApp.filter('showType', function() {
    return function(showType) {
        if(showType == 3){
            return false;
        }else{
            return true;
        };
    }
});
</script>
</html>